﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2012/1/3 17:38:47
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Restaurant.EntityType;
using Sector7.Framework.Core;

namespace Sector7.Restaurant.DAO
{
    /// <summary>
    /// 员工组数据访问接口
    /// </summary>
    public interface IEmployeeGroupDAO
    {
        /// <summary>
        /// 创建员工组
        /// </summary>
        /// <param name="group">员工组</param>
        /// <returns></returns>
        int Create(RS_EmployeeGroup group);

        /// <summary>
        /// 读取员工组信息
        /// </summary>
        /// <param name="groupId">员工组ID</param>
        /// <returns></returns>
        RS_EmployeeGroup Read(int groupId);

        /// <summary>
        /// 读取所有员工组信息
        /// </summary>
        /// <param name="isReadEmployee">是否读取员工信息</param>
        /// <returns></returns>
        List<RS_EmployeeGroup> ReadAll(bool isReadEmployee);

        /// <summary>
        /// 修改员工组信息
        /// </summary>
        /// <param name="delta">员工组改变量</param>
        /// <returns></returns>
        int Update(EntityDelta delta);

        /// <summary>
        /// 删除员工组
        /// </summary>
        /// <param name="groupId">员工组ID</param>
        /// <returns></returns>
        DBOptResultType Delete(int groupId);
    }
}
